<?php

namespace app\common\model;

class WeixinExpressOrderList extends Base
{

    protected $deleteTime = "delete_time";

    /**
     * @param int $order_id
     * @return array|false
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function getExpressByOrderId(int $order_id = 0)
    {
        if ($order_id == 0) {
            return false;
        }
        return $this->where('order_id', $order_id)
            ->select()
            ->toArray();
    }
}